export  const windowsControl = ()=>{
    const minimizeWindow = () => {
        if(window.electronAPI !== 'undefined'){
            window.electronAPI.minimize();
        }
    }

    const maximizeWindow = () => {
        if(window.electronAPI !== 'undefined'){
            window.electronAPI.maximize();
        }
    }

    const fullScreenWindow = () => {
        if(window.electronAPI !== 'undefined'){
            window.electronAPI.fullscreen();
        }
    }

    return {
        minimizeWindow,
        maximizeWindow,
        fullScreenWindow
    }
}

